package com.kehutong.tag.entity;

import com.kehutong.crm.enums.TagSourceType;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;

import java.util.List;

/**
 * 用户标签
 *
 * @author: liukunlong
 * @date: 2021-08-05 13:33
 */
@Table(value = "t_user_tag", comment = "用户标签", multi = true)
public class UserTag extends Entity {
    private static final long serialVersionUID = -1;

    protected UserTag(String id) {
        super(id);
    }
    @CheckField("用户编号不能为空")
    @Column(comment = "用户编号")
    private String userNo;

    @CheckField("用户名称不能为空")
    @Column(comment = "用户名称")
    private String userName;

    @Column(comment="标签来源类型")
    private TagSourceType type;

    @Column(comment="标签组编号")
    private String tagGroupNo;

    @Column(comment="标签组名称")
    private String tagGroupName;

    @Column(comment="标签编号")
    private String tagNo;

    @Column(comment="标签名称")
    private String tagName;

    @Column(comment="小区编号")
    private String communityNo;

    @Column(comment="小区名称")
    private String communityName;

    @Column(comment="操作人")
    private String createBy;

    @Column(comment = "操作人名字")
    private String createName;

    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getTagGroupNo() {
        return tagGroupNo;
    }

    public void setTagGroupNo(String tagGroupNo) {
        this.tagGroupNo = tagGroupNo;
    }

    public String getTagGroupName() {
        return tagGroupName;
    }

    public void setTagGroupName(String tagGroupName) {
        this.tagGroupName = tagGroupName;
    }

    public String getTagNo() {
        return tagNo;
    }

    public void setTagNo(String tagNo) {
        this.tagNo = tagNo;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(String communityNo) {
        this.communityNo = communityNo;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public TagSourceType getType() {
        return type;
    }

    public void setType(TagSourceType type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
